package edu.gatech.ealf.secretservantplaf;

import java.awt.Graphics;
import java.awt.Point;
import java.awt.Rectangle;

import javax.swing.JComponent;
import javax.swing.plaf.ComponentUI;
import javax.swing.plaf.TextUI;
import javax.swing.text.BadLocationException;
import javax.swing.text.EditorKit;
import javax.swing.text.JTextComponent;
import javax.swing.text.View;
import javax.swing.text.Position.Bias;

public class SSTextFieldUI extends TextUI {
	private static final String UI_CLASS_ID = "TextFieldUI";
	
	public SSTextFieldUI() {
        ;
    }

    public static ComponentUI createUI(JComponent c) {
        return new SSTextFieldUI();
    }

    @Override
    public void installUI(JComponent c) {
        
        SecretServantLookAndFeel.getInstance().registerComponentInstallation(UI_CLASS_ID, c);
    }


    @Override
    public void uninstallUI(JComponent c) {
    	
    	SecretServantLookAndFeel.getInstance().registerComponentUninstallation(UI_CLASS_ID, c);
    }

    @Override
    public void paint(Graphics g, JComponent c) {
    }
    
    @Override
    public void update(Graphics g, JComponent c) {
    }

	@Override
	public void damageRange(JTextComponent t, int p0, int p1) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void damageRange(JTextComponent t, int p0, int p1, Bias firstBias, Bias secondBias) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public EditorKit getEditorKit(JTextComponent t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getNextVisualPositionFrom(JTextComponent t, int pos, Bias b, int direction, Bias[] biasRet) throws BadLocationException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public View getRootView(JTextComponent t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Rectangle modelToView(JTextComponent t, int pos) throws BadLocationException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Rectangle modelToView(JTextComponent t, int pos, Bias bias) throws BadLocationException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int viewToModel(JTextComponent t, Point pt) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int viewToModel(JTextComponent t, Point pt, Bias[] biasReturn) {
		// TODO Auto-generated method stub
		return 0;
	}
	
}
